The warning interferes with having a testcase to check this behavior,
so reduce this to a message.
if (!c)
{
- g_warning (G_STRLOC ": Unable to load %s from the cursor theme", cursor->name);
+ g_message ("Unable to load %s from the cursor theme", cursor->name);
return FALSE;
}
return GDK_CURSOR (private);
if (!_gdk_wayland_cursor_update (display_wayland, private))
- return GDK_CURSOR (private);
+ {
+ g_object_unref (private);
+ return NULL;
+ }
/* Insert into cache. */
g_hash_table_insert (display_wayland->cursor_cache,